use sky_takeout::utils::amap;
use tokio;

#[tokio::main]
async fn main() {
    dotenv::dotenv().ok();

    // 示例地址
    let address = "秣陵街道胜太西路168号".to_string();

    // 调用函数
    match amap::get_longitude_and_latitude(address).await {
        Ok(location) => {
            println!("地址的经纬度是: {}", location);
        }
        Err(err) => {
            eprintln!("获取经纬度失败: {}", err);
        }
    }
}
